package com.hqyj.mapper;

import com.hqyj.pojo.Category;
import com.hqyj.pojo.Product;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface CategoryMapper extends Mapper<Category> {
    List<Category> CategoryList(@Param("sreachCategory") String sreachCategory);

    Boolean deleteCategoryById(@Param("id")Integer id);

    Boolean categoryAdd(@Param("name")String name);

    Integer deleteByIds(@Param("oIdsList") List<String> oIdsList);

    Category selectById(@Param("id") Integer id);

    Boolean categoryUpdate(@Param("id") Integer id,@Param("name") String name);
}